package com.auto.service;

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.springframework.stereotype.Service;

import com.auto.entity.Request;

@Service
public class RequestSender {

	public void send(Request request) throws ClientProtocolException,
			IOException {
		HttpClient httpclient = new DefaultHttpClient();
		if (request.isPost()) {
			HttpPost httpPost = new HttpPost(request.getUrl());
			httpclient.execute(httpPost);
		} else {
		}

	}
}
